﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="OfficeAdd.ascx.cs" Inherits="AdminX_Company_OfficeAdd" %>
<%@ Register Src="../../Common/Alert.ascx" TagName="Alert" TagPrefix="uc1" %>



<div class="tab_content">                                       
    <div class="formEl_b">	           
        <fieldset>
            
            <div class="clear"></div>
            <div class="section">
                <asp:Label ID="lblLanguage" runat ="server"></asp:Label>
                 <asp:DropDownList ID="ddlLanguage" runat="server"  AutoPostBack ="true" onselectedindexchanged="ddlLanguage_SelectedIndexChanged" ></asp:DropDownList>
            </div>

            <div class="section">
                <asp:Label ID="lblCompanyName" runat ="server"></asp:Label>
                <asp:TextBox ID="txtCompanyName" runat ="server" CssClass="medium" MaxLength="250" ValidationGroup="Input" ></asp:TextBox><small class="note">*</small>
            </div>

            <div class="section">
                <asp:Label ID="lblAddress" runat ="server"></asp:Label>
                <asp:TextBox ID="txtAddress" runat ="server" CssClass="medium" MaxLength="250" ValidationGroup="Input" ></asp:TextBox><small class="note">*</small>
            </div>

            <div class="section">
                <asp:Label ID="lblEmail" runat ="server"></asp:Label>
                <asp:TextBox ID="txtEmail" runat ="server" CssClass="medium"  MaxLength="250" ValidationGroup="Input" ></asp:TextBox>
            </div>
            <div class="section numericonly">
                <asp:Label ID="lblTel" runat ="server"></asp:Label>
                <asp:TextBox ID="txtTel" runat ="server" CssClass="validate[required] small"  MaxLength="250"  ></asp:TextBox>
            </div>

            <div class="section">
                <asp:Label ID="lblFax" runat ="server" ></asp:Label>
                <asp:TextBox ID="txtFax" runat ="server" CssClass="validate[required] small"  MaxLength="250"  ></asp:TextBox>
            </div>

            

            <div class="section"> 
                <span>&nbsp;</span>          
                <asp:LinkButton ID="btnSave" runat="server"  CssClass="uibutton" ValidationGroup="Input" onclick="btnSave_Click1" ></asp:LinkButton>
                <asp:LinkButton ID="btnCancel" runat="server" CssClass="uibutton special" onclick="btnCancel_Click"></asp:LinkButton> 
            </div>
        </fieldset>
    </div>
</div>




<asp:RequiredFieldValidator ID="rfvCompanyName" runat="server" SetFocusOnError="true"   ControlToValidate="txtCompanyName" Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="rfvAddress" runat="server" SetFocusOnError="true"   ControlToValidate="txtAddress" Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator 
            ID="revEmail" 
            runat="server" 
            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
            ControlToValidate="txtEmail" 
            Display="None" 
            ValidationGroup="Input" 
            SetFocusOnError="True" 
            Text="*">
</asp:RegularExpressionValidator>

<asp:ValidationSummary ID="ValidationSummary4" ShowMessageBox="true" runat="server" ValidationGroup="Input" ShowSummary="False" />